package com.cxdr.awsips.packing.bean;

/**
 * 目标信息
 * 
 * @author pugang
 */
public class Target {
	// 目录地址
	private String path;
	// ip
	private String ip;
	// 协议
	private Protocol protocol;
	// ID
	private String ID;
	// 密码
	private String password;

	// 用户名
	private String username;
	//备份目录
	private String backpath;

	public String getID() {
		return ID;
	}

	public String getIp() {
		return ip;
	}

	public String getPassword() {
		return password;
	}

	public String getPath() {
		return path;
	}

	public Protocol getProtocol() {
		return protocol;
	}

	public String getUsername() {
		return username;
	}

	public void setID(String iD) {
		ID = iD;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setProtocol(Protocol protocol) {
		this.protocol = protocol;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String toString() {
		return "protocol:" + protocol.name() + "||ip:" + ip + "||path" + path + "||username:" + username + "||password:" + password;
	}

	public String getBackpath() {
		return backpath;
	}

	public void setBackpath(String backpath) {
		this.backpath = backpath;
	}
}
